/*
 * PauseMessage.cpp
 *
 * Author: Mario Hock
 *
 */

#include "PauseMessage.h"

vsznDefault(PauseMessage);

PauseMessage::PauseMessage()
{
	// Default constructor is
	// necessary for serialization
}


PauseMessage::PauseMessage(PAUSE_STATE pause_state, string key, uint64_t position) :
        pause_state((uint8_t) pause_state),
        key(key),
        position(position)
{
}


string PauseMessage::get_key()
{
    return key;
}


bool PauseMessage::is_pause()
{
    return (pause_state & PauseMessage::PAUSE);
}


bool PauseMessage::is_hold()
{
    return (pause_state & PauseMessage::HOLD);
}


uint64_t PauseMessage::get_position()
{
    return position;
}



